import { Pipe, PipeTransform } from '@angular/core'

@Pipe({
  name: 'estateSellStatus'
})
export class EstateSellStatusPipe implements PipeTransform {
  transform(status: string): any {
    switch (status) {
      case 'SaleStatus_Sell':
        return '在售'
        break
      case 'SaleStatus_Wait':
        return '待售'
        break
      case 'SaleStatus_Finish':
        return '售罄'
    }
  }
}
